From a83c71a1c3a033eb7d13dd37d15926de24d44314 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Mon, 31 Oct 2005 20:40:12 +0000 Subject: [PATCH] Assigned ozi's proximity distance to waypoint proximity (checked against CompeGPS radius value) --- gpsbabel/ozi.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gpsbabel/ozi.c b/gpsbabel/ozi.c index 29b7c3eeb..b35cbb40c 100644 --- a/gpsbabel/ozi.c +++ b/gpsbabel/ozi.c @@ -367,6 +367,7 @@ ozi_parse_waypt(int field, char *str, waypoint * wpt_tmp) break; case 13: /* proximity distance - meters */ + wpt_tmp->proximity = atof(str); break; case 14: /* altitude in feet */ @@ -657,9 +658,14 @@ ozi_waypt_pr(const waypoint * wpt) index++; fprintf(file_out, - "%d,%s,%.6f,%.6f,%.5f,%d,%d,%d,%d,%d,%s,%d,%d,%d,%.0f,%d,%d,%d\r\n", + "%d,%s,%.6f,%.6f,%.5f,%d,%d,%d,%d,%d,%s,%d,%d,", index, shortname, wpt->latitude, wpt->longitude, ozi_time, 0, - 1, 3, 0, 65535, description, 0, 0, 0, alt_feet, 6, 0, 17); + 1, 3, 0, 65535, description, 0, 0); + if (wpt->proximity > 0) + fprintf(file_out, "%.1f,", wpt->proximity); + else + fprintf(file_out,"0,"); + fprintf(file_out, "%.0f,%d,%d,%d\r\n", alt_feet, 6, 0, 17); xfree(description); xfree(shortname); -- 2.30.2